import request from '@/utils/request'
// 获取列表
export function getFanganList(params) {
  return request({
    url: '/planModel/list',
    method: 'get',
    params
  })
}

export function getFanganData(params) {
  return request({
    url: '/planModel',
    method: 'get',
    params
  })
}

export function createFangan(params) {
  return request({
    url: '/planModel/insert',
    method: 'post',
    data: params
  })
}

export function updateFangan(params) {
  return request({
    url: '/planModel/update',
    method: 'post',
    data: params
  })
}

export function deleteFangan(params) {
  return request({
    url: '/planModel/delete',
    method: 'post',
    data: params
  })
}
